home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 49
/
Volume 49 - JOGO DISK .iso
/
Games
/
bloop.swf
/
scripts
/
DefineSprite_213_background
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-27
|
1KB
|
34 lines
depth = 0;
this.back.gotoAndStop(_root.level);
go = 0;
while(go < 10)
{
depth++;
attachMovie("background_bubble","bubble" + depth,depth);
eval("bubble" + depth).gotoAndStop(_root.level);
eval("bubble" + depth)._x = random(Stage.width);
eval("bubble" + depth)._y = random(Stage.height);
eval("bubble" + depth)._width = random(40) + 2;
eval("bubble" + depth)._height = eval("bubble" + depth)._width;
eval("bubble" + depth).moveSpeed = random(2) + 1;
go++;
}
_root.setFrame(this);
onEnterFrame = function()
{
_root.checkFrame(this);
this.back.gotoAndStop(_root.level);
num = random(10);
if(num == 1)
{
depth++;
attachMovie("background_bubble","bubble" + depth,depth);
eval("bubble" + depth).gotoAndStop(_root.level);
eval("bubble" + depth)._x = random(Stage.width);
eval("bubble" + depth)._y = Stage.height + 50;
eval("bubble" + depth)._width = random(40) + 2;
eval("bubble" + depth)._height = eval("bubble" + depth)._width;
eval("bubble" + depth).moveSpeed = random(2) + 1;
}
};